//
//  GX_Button.m
//  04-QQHomeWork
//
//  Created by 曹曹 on 16/7/20.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "GX_Button.h"

@implementation GX_Button

- (CGRect)imageRectForContentRect:(CGRect)contentRect {
    return CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
}

- (void)setTitle:(NSString *)title
      TitleColor:(UIColor *)titleColor
 backgroundColor:(UIColor *)bacgroundColor
   cornderRadius:(CGFloat)radius
    borderWidth:(CGFloat)borderWidth
     borderColor:(UIColor *)borderColor {
    self.backgroundColor = bacgroundColor;
    [self setTitle:title forState:UIControlStateNormal];
    [self setTitleColor:titleColor forState:UIControlStateNormal];
    self.layer.cornerRadius = radius;
    self.layer.borderWidth = borderWidth;
    self.layer.borderColor = borderColor.CGColor;
}

@end
